import time
import unittest
from selenium import webdriver

from Page import Page


class TestCase(unittest.TestCase):
    def setUp(self) -> None:
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
    def tearDown(self) -> None:
        time.sleep(5)
        self.driver.quit()
    def test_01(self):
        po=Page(self.driver)
        po.open_url('http://localhost:8080/')
        time.sleep(5)
        po.username()
        po.password()
        po.denglu()


if __name__ == '__main__':
    unittest.main()
